package models;

import java.util.ArrayList;

import javax.persistence.*;

import play.db.jpa.Model;

@Inheritance(strategy=InheritanceType.JOINED)
@Entity
public class Comment extends Model{

	@ManyToOne
	private User user;
	
	@Lob
	private String comment;
	

	public Comment(User user, String comment) {
		super();
		this.user = user;
		this.comment = comment;
	}
	

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	
}
